class Course {
  String name;
  String cover;
  String url;
  int group;

  Course({
    required this.name,
    required this.cover,
    required this.url,
    required this.group,
  });

  factory Course.fromJson(Map<String, dynamic> json) => Course(
    name: json["name"],
    cover: json["cover"],
    url: json["url"],
    group: json["group"],
  );

  Map<String, dynamic> toJson() => {
    "name": name,
    "cover": cover,
    "url": url,
    "group": group,
  };
}